fo=open("xiaofei.csv","r")
ls=[]
for line in fo:
    line=line.replace("\n","")
    ls.append(line.split(","))
city=input("请输入城市名：")
objectname=input("请输入项目名;")
for i in range(len(ls)):
    if ls[i][0]==city:
        for j in range(len(ls[i])):
            if ls[0][j]==objectname:
                print("你输入的城市是：",city)
                print(objectname,"是：",ls[i][j])
fo.close()
